package com.jintian.smart.platform.system.mapper;

import com.jintian.smart.base.api.support.entity.TableColumnEntity;
import com.jintian.smart.kernel.orm.mapper.IBaseExtMapper;
import org.beetl.sql.mapper.annotation.Mapper;
import org.beetl.sql.mapper.annotation.Param;
import org.beetl.sql.mapper.annotation.SqlResource;

/**
 * 表格自定义列（前端用户自定义表格列，并保存到数据库里）
 */
@Mapper
@SqlResource("system.TableColumn")
public interface TableColumnMapper extends IBaseExtMapper<TableColumnEntity> {
    TableColumnEntity selectByUserIdAndTableId(@Param("userId") Long userId, @Param("userType") Integer userType, @Param("tableId") Integer tableId);

    void deleteTableColumn(@Param("userId") Long userId, @Param("userType") Integer userType, @Param("tableId") Integer tableId);
}
